home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 328 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  512 b 

  1. Path: news.production.compuserve.com!news
  2. From: Nil Bannerjee <100704.1417@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Question about destructor...
  5. Date: 3 Jan 1996 21:22:45 GMT
  6. Organization: CompuServe, Inc. (1-800-689-0736)
  7. Message-ID: <4ces35$3iq$1@mhafn.production.compuserve.com>
  8. References: <4cegke$p5@newsbf02.news.aol.com>
  9.  
  10.    If you call the destructor of A from B's destructor then this 
  11. will take care of the inherited attributes.
  12.  
  13. CB::~CB()
  14. {
  15.     //your stuff..
  16.     ..
  17.     ..
  18.     ~CA();
  19. }
  20.